
# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo11
# Description:
# Author:       98745
# Date:         2019/3/7
#-------------------------------------------------------------------------------

import re
r=re.split(';','bill;mike;john')
print(r)
r=re.split('[,;.\s]','a,b,,data,data;x   c,data. e')
print(r)
r=re.split('[a-z]{3}-[0-9]{2}','testabc-4312productxyz-43abill')
print(r)
r=re.split('[a-z]{3}-[0-9]{2}','testabc-4312productxyz-43abill',maxsplit=1)
print(r)